package com.shuijianbaozi.child.testdemo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

public class ActivityItem3 extends Activity {

    @InjectView(R.id.textView5)
    TextView textView5;
    @InjectView(R.id.button)
    Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_item3);
        ButterKnife.inject(this);
    }

    @OnClick(R.id.button)
    public void onViewClicked(View view) {
        switch (view.getId()){
            case R.id.button:
                Toast.makeText(this,"activity3的按钮被点击了",Toast.LENGTH_LONG);
                break;


        }
    }
}
